<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    const originalNames = ['赵云', '马超', '刘备', '关羽', '张飞', '曹操', '孙权'];
    let names = [...originalNames];
    let sj = Math.floor(Math.random() * names.length)
    document.write(names[sj])
    names.splice(sj, 1);
    console.log(names);

  </script>
</body>

</html>